<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"/>
    <title>Title</title>
    <script src="/static/js/userinfo.js"></script>
</head>
<body>
<div id="userinfo_datagrid">
</div>

<%--toolbar工具类--%>
<div id="userinfo_toobar">
    <%--只有学生新增过来的数据才能编辑 一旦审核之后 只能查看不能编辑--%>
    <a class="easyui-linkbutton" iconCls="icon-edit" plain="true"
       data-cmd="edit">编辑</a>
    <a class="easyui-linkbutton" iconCls="icon-look" plain="true"
       data-cmd="look">查看</a>
    <a id="audit_btn" class="easyui-linkbutton" iconCls="icon-audit"
       plain="true" data-cmd="audit">审核</a>
</div>

<div id="userinfo_dialog" align="center">
    <form id="userinfo_form" method="post">
        <input type="hidden" name="id" id="id">
        <table align="center" style="margin-top: 15px">
            <tbody>
            <tr>
                <td>真实姓名:</td>
                <td>
                    <input name="realName" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>身份证:</td>
                <td>
                    <input name="idNumber" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>手机号码</td>
                <td>
                    <input name="phoneNumber" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>邮箱</td>
                <td>
                    <input name="email" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>地址</td>
                <td>
                    <input name="address" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>状态</td>
                <td>
                    <input name="state" class="easyui-combobox"
                           data-options="panelHeight:'auto', valueField:'value',textField:'text',
                                data:[{text:'正常状态',value:'1'},{text:'非正常状态',value:'0'}]">
                </td>
            </tr>
            <tr>
                <td>学校名称</td>
                <td>
                    <input name="schoolName" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>申请时间</td>
                <td>
                    <input name="applyTime" class="easyui-datetimebox"
                           data-options="readonly: true">
                </td>
            </tr>
            <tr>
                <td>紧急联系人</td>
                <td>
                    <input name="emergencyContactName" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>紧急联系人电话</td>
                <td>
                    <input name="emergencyContactPhone" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>所在班级</td>
                <td>
                    <input name="grade.id" class="easyui-combobox"
                           data-options="panelHeight:'auto', url:'/grade/list.do',
                               valueField:'id',textField:'className'">
                </td>
            </tr>
            <tr>
                <td>班主任</td>
                <td>
                    <input name="teacher.id" class="easyui-combobox"
                           data-options="panelHeight:'auto', url:'/employee/list.do',
                                    valueField:'id',textField:'realname'">
                </td>
            </tr>
            <tr>
                <td>信息备注</td>
                <td><textarea name="remark" rows="3"
                              class="textarea easyui-validatebox"></textarea>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
</body>
</html>
